class PF::Projector

Defined in:

3d/projector.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Float64 | Int32, height : Float64 | Int32, camera : PF::Camera = Camera.new) #

[View source]

Instance Method Detail

def aspect_ratio #

[View source]
def aspect_ratio=(aspect_ratio : Float64 | Nil) #

[View source]
def camera : Camera #

[View source]
def camera=(camera : Camera) #

[View source]
def clipping_plane_near : Vector3(Float64) #

[View source]
def clipping_plane_near=(clipping_plane_near : Vector3(Float64)) #

[View source]
def far : Float64 #

[View source]
def far=(far : Float64) #

[View source]
def fov : Float64 #

[View source]
def fov=(value : Float64) #

[View source]
def fov_rad #

[View source]
def height : Int32 | Float64 #

[View source]
def height=(value : Float64 | Int32) #

[View source]
def light : Vector3(Float64) #

[View source]
def light=(light : Vector3(Float64)) #

[View source]
def mat_proj #

[View source]
def mat_proj=(mat_proj : Matrix(Float64, 16) | Nil) #

[View source]
def near : Float64 #

[View source]
def near=(near : Float64) #

[View source]
def near_plane_normal : Vector3(Float64) #

[View source]
def near_plane_normal=(near_plane_normal : Vector3(Float64)) #

[View source]
def project(tris : Array(Tri), camera = @camera) #

[View source]
def width : Int32 | Float64 #

[View source]
def width=(value : Float64 | Int32) #

[View source]