class Simple3d::Vertex
Attributes
normal[RW]
position[RW]
tangent[RW]
texcoord[RW]
Public Class Methods
new(*args)
click to toggle source
# File lib/simple3d/vertex.rb, line 9 def initialize *args @position = ::Geo3d::Vector.point( args[0], args[1], args[2] ) @texcoord = ::Geo3d::Vector.point( args[3], args[4]) @normal = ::Geo3d::Vector.new( args[5], args[6], args[7] ) @tangent = ::Geo3d::Vector.new( args[8], args[9], args[10] ) end
Public Instance Methods
bitangent()
click to toggle source
# File lib/simple3d/vertex.rb, line 16 def bitangent normal.cross tangent end