Projection

gdext.builtin.Projection
See theProjection companion object
final case class Projection(xx: Float, xy: Float, xz: Float, xw: Float, yx: Float, yy: Float, yz: Float, yw: Float, zx: Float, zy: Float, zz: Float, zw: Float, wx: Float, wy: Float, wz: Float, ww: Float)

Godot's Projection: a 4x4 matrix of columns x, y, z, w (each a Vector4), stored flat (16 floats) so one value is one object. Field xy is column x, component y. Plane indices for getProjectionPlane: 0 near, 1 far, 2 left, 3 top, 4 right, 5 bottom.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(v: Vector4): Vector4
def determinant: Float
def el(c: Int, r: Int): Float

Element columns[c][r].

Element columns[c][r].

Attributes

def getAspect: Float
def getFov: Float
def getLodMultiplier: Float
def getPixelsPerMeter(forPixelWidth: Long): Long
def getProjectionPlane(plane: Long): Plane
def getZFar: Float
def getZNear: Float
def isOrthogonal: Boolean
def perspectiveZnearAdjusted(newZnear: Float): Projection
def toArray: Array[Float]

The 16 elements in column-major order, as C++ &columns[0][0].

The 16 elements in column-major order, as C++ &columns[0][0].

Attributes

def w: Vector4
def x: Vector4
def xform(v: Vector4): Vector4
def xform(v: Vector3): Vector3

Project a point (homogeneous divide by w).

Project a point (homogeneous divide by w).

Attributes

def y: Vector4
def z: Vector4

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product