- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
inline public var length(getLength,null):Float;
inline public function getLength():Float {
return Math.abs(Vector3D.distance(this,new Vector3D()));
}
inline public var lengthSquared(getLengthSquared,null):Float;
inline public function getLengthSquared():Float {
return length * length;
}