Position3 D
Represents a coordinate in 3D space. Extends Position with a z
dimension. Use Position3D.from2DPosition and Position3D.to2DPosition to convert between the two. The z
dimension represents the up and down axis.
Explanation:
<pre> ^ (z axis, positive direction) \ \ \ \ O---------> (x axis, positive direction) / / / L (y axis, positive direction)</pre>
Types
Functions
compareTo
Link copied to clipboard
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
minus
Link copied to clipboard
plus
Link copied to clipboard
to2DPosition
Link copied to clipboard
toSize
Link copied to clipboard
Transforms this Position3D to a Size3D so if this position is Position(x=2, y=3, z=1) it will become Size3D(x=2, y=3, z=1).
withRelative
Link copied to clipboard
Creates a new Position3D object that is translated by an amount of x, y and z specified by another Position3D.
withRelativeX
Link copied to clipboard
Creates a new Position3D object representing a position on the same
y
and y
, but with an x
offset by the supplied deltaX
.withRelativeY
Link copied to clipboard
Creates a new Position3D object representing a position on the same
x
and y
, but with an y
offset by the supplied deltaY
.withRelativeZ
Link copied to clipboard
Creates a new Position3D object representing a position on the same
x
and y
, but with a y
offset by the supplied deltaZ
.withX
Link copied to clipboard
Creates a new Position3D object representing a 3D position with the same
y
and y
as this but with the supplied x
.withY
Link copied to clipboard
Creates a new Position3D object representing a 3D position with the same
x
and y
as this but with the supplied y
.withZ
Link copied to clipboard
Creates a new Position3D object representing a 3D position with the same
x
and y
as this but with the supplied y
.Properties
hasNegativeComponent
Link copied to clipboard
Tells whether this Position3D has a negative component (x, y or z) or not.
Sources
(source)
Link copied to clipboard