class CSG::Vertex

Overview

Represents a vertex of a polygon.

Defined in:

primitives/vertex.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(position : Vector, normale : Vector) #

[View source]

Instance Method Detail

def clone #

[View source]
def flip #

Invert all orientation-specific data (e.g. vertex normal). Called when the orientation of a polygon is flipped.


[View source]
def interpolate(other : Vertex, t : Float64) #

Create a new vertex between this vertex and other by linearly interpolating all properties using a parameter of t. Subclasses should override this to interpolate additional properties.


[View source]
def normal : Vector #

[View source]
def normal=(normal : Vector) #

[View source]
def pos : Vector #

[View source]
def pos=(pos : Vector) #

[View source]