StaticcameraStaticcameraStaticcameraGiven a center point on the plane calculate 4 points in
the shape of a square (on plane) where sides have size scale
then convert the coordinates to the parent transforms coordinate system.
Center of resulting square.
Normal of plane that square will be generated on.
Camera used to scale square.
Square size.
The parent TransformNode, this transform nodes world matrix will be used to transform the coordinates to local space.
Square corner points.
dst
StaticcreateCreates a plane aligned with the current camera, and a size that can be used to place points on the plane from center that reaches the edges of the camera frustum
An object containing the newly created plane, and the size to move things away from the center in order to put them on the camera frustum edges
StaticdoesValidate that a set of given points lie in the provided plane.
Plane to check against.
Array containing points to validate.
true if points lie in plane, false otherwise.
StaticplanesFinds the intersection area of two axis aligned planes and returns it as 2 points.
Center of first plane.
Scale of first plane.
Center of second plane.
Scale of second plane.
The intersection area of the 2 planes. undefined if there is none.
StaticpointCalculate a point on plane located at an angle of theta around point, P, on plane that is closest to (0,0,0).
Angle in radians in unit circle projected on plane around point P on plane closest to (0,0,0).
Point on plane is written to this object. Point is located on unit circle project on plane around point P closest to (0,0,0).
Reference to dst
Staticsquare
Useful operations to perform on a plane.