当前位置: 首页>>代码示例>>Java>>正文


Java CoordinateSequence.Y属性代码示例

本文整理汇总了Java中com.vividsolutions.jts.geom.CoordinateSequence.Y属性的典型用法代码示例。如果您正苦于以下问题:Java CoordinateSequence.Y属性的具体用法?Java CoordinateSequence.Y怎么用?Java CoordinateSequence.Y使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.vividsolutions.jts.geom.CoordinateSequence的用法示例。


在下文中一共展示了CoordinateSequence.Y属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#setOrdinate(int, int, double)
 */
@Override
public void setOrdinate(int index, int ordinateIndex, double value) {
    switch (ordinateIndex) {
        case CoordinateSequence.X:
            this.coordinates[index].x = value;
            break;
        case CoordinateSequence.Y:
            this.coordinates[index].y = value;
            break;
        case CoordinateSequence.Z:
            this.coordinates[index].z = value;
            break;
        default:
            throw new IllegalArgumentException("invalid ordinateIndex");
    }
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:19,代码来源:CoordinateArraySequence.java

示例2: setOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#setOrdinate(int, int, double)
 */
public void setOrdinate(int index, int ordinateIndex, double value) {
    switch (ordinateIndex) {
        case CoordinateSequence.X:
            coordinates[index].x = value;
            break;
        case CoordinateSequence.Y:
            coordinates[index].y = value;
            break;
        case CoordinateSequence.Z:
            coordinates[index].z = value;
            break;
        case CoordinateSequence.M:
            coordinates[index].setM(value);
            break;
    }
}
 
开发者ID:Semantive,项目名称:jts,代码行数:19,代码来源:ExtendedCoordinateSequence.java

示例3: setOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#setOrdinate(int, int, double)
 */
public void setOrdinate(int index, int ordinateIndex, double value) {
    switch (ordinateIndex) {
        case CoordinateSequence.X:
            coordinates[index].x = value;
            break;
        case CoordinateSequence.Y:
            coordinates[index].y = value;
            break;
        case CoordinateSequence.Z:
            coordinates[index].z = value;
            break;
        default:
            throw new IllegalArgumentException("invalid ordinateIndex");
    }
}
 
开发者ID:Semantive,项目名称:jts,代码行数:18,代码来源:CoordinateArraySequence.java

示例4: getOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#getOrdinate(int, int)
 */
public double getOrdinate(int index, int ordinateIndex)
{
	switch (ordinateIndex) {
	case CoordinateSequence.X: return coordinates[index].x;
	case CoordinateSequence.Y: return coordinates[index].y;
	case CoordinateSequence.Z: return coordinates[index].z;
	}
	return Double.NaN;
}
 
开发者ID:GIScience,项目名称:openrouteservice,代码行数:12,代码来源:AvoidAreasEdgeFilter.java

示例5: setOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#setOrdinate(int, int, double)
 */
public void setOrdinate(int index, int ordinateIndex, double value)
{
	switch (ordinateIndex) {
	case CoordinateSequence.X: coordinates[index].x = value;
	case CoordinateSequence.Y: coordinates[index].y = value;
	case CoordinateSequence.Z: coordinates[index].z = value;
	}
}
 
开发者ID:GIScience,项目名称:openrouteservice,代码行数:11,代码来源:AvoidAreasEdgeFilter.java

示例6: getOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#getOrdinate(int, int)
 */
@Override
public double getOrdinate(int index, int ordinateIndex) {
    switch (ordinateIndex) {
        case CoordinateSequence.X:
            return this.coordinates[index].x;
        case CoordinateSequence.Y:
            return this.coordinates[index].y;
        case CoordinateSequence.Z:
            return this.coordinates[index].z;
    }
    return Double.NaN;
}
 
开发者ID:gegy1000,项目名称:Earth,代码行数:15,代码来源:CoordinateArraySequence.java

示例7: getOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#getOrdinate(int, int)
 */
public double getOrdinate(int index, int ordinateIndex) {
    switch (ordinateIndex) {
        case CoordinateSequence.X:
            return coordinates[index].x;
        case CoordinateSequence.Y:
            return coordinates[index].y;
        case CoordinateSequence.Z:
            return coordinates[index].z;
        case CoordinateSequence.M:
            return coordinates[index].getM();
    }
    return Double.NaN;
}
 
开发者ID:Semantive,项目名称:jts,代码行数:16,代码来源:ExtendedCoordinateSequence.java

示例8: getOrdinate

/**
 * @see com.vividsolutions.jts.geom.CoordinateSequence#getOrdinate(int, int)
 */
public double getOrdinate(int index, int ordinateIndex) {
    switch (ordinateIndex) {
        case CoordinateSequence.X:
            return coordinates[index].x;
        case CoordinateSequence.Y:
            return coordinates[index].y;
        case CoordinateSequence.Z:
            return coordinates[index].z;
    }
    return Double.NaN;
}
 
开发者ID:Semantive,项目名称:jts,代码行数:14,代码来源:CoordinateArraySequence.java


注:本文中的com.vividsolutions.jts.geom.CoordinateSequence.Y属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。