struct Godot::Plane

Overview

A 3D plane represented in normal-distance form (ax + by + cz = d).

Defined in:

libgodot/types/plane.cr

Constant Summary

PLANE_XY = Plane.new(Vector3.new(0.0_f32, 0.0_f32, 1.0_f32), 0.0_f32)
PLANE_XZ = Plane.new(Vector3.new(0.0_f32, 1.0_f32, 0.0_f32), 0.0_f32)
PLANE_YZ = Plane.new(Vector3.new(1.0_f32, 0.0_f32, 0.0_f32), 0.0_f32)

Constructors

Instance Method Summary

Constructor Detail

def self.new(a : Number, b : Number, c : Number, d : Number) #

def self.new(point1 : Vector3, point2 : Vector3, point3 : Vector3) #

def self.new(normal : Vector3 = Vector3.new(0.0_f32, 1.0_f32, 0.0_f32), d : Float32 = 0.0_f32) #

def self.new(pointer : Pointer(Void)) #

Instance Method Detail

def !=(other : Plane) : Bool #

def ==(other : Plane) : Bool #

def d : Float32 #

def d=(d : Float32) #

def distance_to(point : Vector3) : Float32 #

def has_point(point : Vector3, tolerance : Number = 0.00001_f32) : Bool #

def has_point?(point : Vector3, tolerance : Number = 0.00001_f32) : Bool #

def is_equal_approx(other : Plane) : Bool #

def is_finite? : Bool #

def normal : Vector3 #

def normal=(normal : Vector3) #

def normalized : Plane #

def project(point : Vector3) : Vector3 #

def to_s(io : IO) : Void #
Description copied from struct Struct

Same as #inspect(io).