Plane

gdext.builtin.Plane
See thePlane companion object
final case class Plane(normal: Vector3, d: Float)

Godot's Plane: a normal and the distance d from the origin (16 bytes).

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 *(t: Transform3D): Plane

Plane * Transform3D: the inverse transform of this plane.

Plane * Transform3D: the inverse transform of this plane.

Attributes

def distanceTo(point: Vector3): Float
def hasPoint(point: Vector3, tolerance: Float = ...): Boolean
def intersect3(b: Plane, c: Plane): Option[Vector3]

The point where this plane and b and c meet, if they do.

The point where this plane and b and c meet, if they do.

Attributes

def intersectsRay(from: Vector3, dir: Vector3): Option[Vector3]

Where the ray from from along dir hits this plane, if it does.

Where the ray from from along dir hits this plane, if it does.

Attributes

def intersectsSegment(from: Vector3, to: Vector3): Option[Vector3]

Where the segment from-to crosses this plane, if it does.

Where the segment from-to crosses this plane, if it does.

Attributes

def isEqualApprox(toPlane: Plane): Boolean
def isFinite: Boolean
def isPointOver(point: Vector3): Boolean
def project(point: Vector3): Vector3
def unary_+: Plane
def unary_-: Plane
def x: Float
def y: Float
def z: Float

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