class PF3d::Projector
- PF3d::Projector
- Reference
- Object
Defined in:
pf3d/projector.crConstructors
Instance Method Summary
- #aspect_ratio
- #aspect_ratio=(aspect_ratio : Float64 | Nil)
- #camera : Camera
- #camera=(camera : Camera)
- #clipping_plane_far : PF2d::Vec3(Float64)
- #clipping_plane_far=(clipping_plane_far : PF2d::Vec3(Float64))
- #clipping_plane_near : PF2d::Vec3(Float64)
- #clipping_plane_near=(clipping_plane_near : PF2d::Vec3(Float64))
- #far : Float64
- #far=(far : Float64)
- #fov : Float64
- #fov=(value : Float64)
- #fov_rad
- #height : Int32 | Float64
- #height=(value : Float64 | Int32)
- #light : PF2d::Vec3(Float64)
- #light=(light : PF2d::Vec3(Float64))
- #mat_proj
- #mat_proj=(mat_proj : PF2d::Matrix(Float64, 16) | Nil)
- #near : Float64
- #near=(near : Float64)
-
#project(tris : Array(Tri), camera = @camera, sort : Bool = false)
Project an array of Triangles into screen space
- #width : Int32 | Float64
- #width=(value : Float64 | Int32)
Constructor Detail
def self.new(width : Float64 | Int32, height : Float64 | Int32, camera : PF3d::Camera = Camera.new)
#
Instance Method Detail
Project an array of Triangles into screen space