This class should not be instantiated by users of LuciadRIA.
The center point point of this box. This will return the center of the box. This property is read only. An error will be thrown when trying to assign to this property. This property contains an object but should be treated with value semantics: changes to the shape will not be reflected in the focusPoint that was retrieved from this Polygon before the modification.
The spatial reference of this shape. This property is read only. An Error will be thrown when trying to assign to this property.
Determines whether a given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked. If a 3D point is passed to this function, it will be treated as a 2D point: the z coordinate (height) will be ignored. The reference of this point must be the same reference as this Shape
true
when the given point is contained in this shape
Determines whether the given point is inside this oriented box. This method checks containment only in two dimensions: on the (x,y)-axis
Note that since oriented box is a 3D shape, this function will perform its calculation on a projected version of the box.
The x coordinate of the point for which containment must be checked
The y coordinate of the point for which containment must be checked
true
when the given point is contained in this shape
Determines whether the given point is inside this oriented box. This method checks containment only in two dimensions: on the (x,y)-axis.
Note that since oriented box is a 3D shape, this function will perform its calculation on a projected version of the box.
The point for which containment must be checked.
true
when the given point is contained in this shape
Gets the 8 corners of this OrientedBox
, in the form of an array of Vector3 objects.
an array of coordinates.
Invalidate cache of this oriented box.
Converts the oriented box to a string. This functionality is for debugging purposes only. Results of toString cannot be used to uniquely identify a shape instance.
a string version of this oriented box
Applies a transformation to this oriented box.
Note that currently only cartesian transformations are allowed. Geodetic transformations are not supported.
A transformation to apply to this oriented box. Must be a cartesian transformation.
Translates the shape over the given vector in 2D space. The z-coordinate is not touched
The x coordinate of the translation vector
The y coordinate of the translation vector
Translates the shape over the given vector in 3D space.
The x coordinate of the translation vector
The y coordinate of the translation vector
The z coordinate of the translation vector
An OrientedBox is a 3D shape consisting of 8 corner points that form a straight-edged volume that can be oriented in any arbitrary direction. It is similar to a 3D bounds, with the biggest difference is that it is not limited to the orientation of the axes of the reference it is defined in.
Due to the cartesian nature of this shape, it is not available for geodetic references.