本文整理汇总了Java中org.apache.commons.math3.geometry.euclidean.threed.Vector3D.ZERO属性的典型用法代码示例。如果您正苦于以下问题:Java Vector3D.ZERO属性的具体用法?Java Vector3D.ZERO怎么用?Java Vector3D.ZERO使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.commons.math3.geometry.euclidean.threed.Vector3D
的用法示例。
在下文中一共展示了Vector3D.ZERO属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PropertiesComputer
/** Simple constructor.
* @param tolerance below which points are consider to be identical
*/
PropertiesComputer(final double tolerance) {
this.tolerance = tolerance;
this.summedArea = 0;
this.summedBarycenter = Vector3D.ZERO;
this.convexCellsInsidePoints = new ArrayList<Vector3D>();
}
示例2: Transform
public Transform() {
this.scale = 1.0;
this.rotation = Rotation.IDENTITY;
this.translation = Vector3D.ZERO;
this.matrix = MatrixUtils.createRealIdentityMatrix(4);
}
示例3: getSize
public Vector3D getSize() {
// todo: calculate boundary
return Vector3D.ZERO;
}
示例4: loadMaterials
private void loadMaterials(Scene scene) {
List<FBXNode> materialNodes = document.getNode("Objects").getNodes("Material");
for (FBXNode node : materialNodes) {
List<FBXNodeProperty> nodeProperties = node.getProperties();
if (nodeProperties.size() < 2) continue;
Long id = nodeProperties.get(0).getLong();
String name = nodeProperties.get(1).getString();
FBXMaterial material = new FBXMaterial(id, name, node);
FBXPropertyStore store = FBXPropertiesLoader.loadProperties(node.getNode("Properties70"));
FBXProperty diffuseProperty = store.getProperty("DiffuseColor");
Vector3D diffuseColor = Vector3D.ZERO;
if (diffuseProperty != null)
diffuseColor = diffuseProperty.getValue().asVector();
material.setDiffuseColor(diffuseColor);
scene.addMaterial(id, material);
}
}