Dart DocumentationthreeRenderableVertex

RenderableVertex class

@author mr.doob / http://mrdoob.com/

Ported to Dart from JS by: @author rob silverton / http://www.unwrong.com/

class RenderableVertex {
 Vector3 positionWorld;
 Vector4 positionScreen;

 bool visible = true;

 RenderableVertex()
     : positionWorld = new Vector3.zero(),
       positionScreen = new Vector4(0.0, 0.0, 0.0, 1.0);

 copy( RenderableVertex vertex ) {
   positionWorld.setFrom( vertex.positionWorld );
   positionScreen.setFrom( vertex.positionScreen );
 }
 
 clone() => new RenderableVertex()..copy(this);
}

Constructors

new RenderableVertex() #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
RenderableVertex()
   : positionWorld = new Vector3.zero(),
     positionScreen = new Vector4(0.0, 0.0, 0.0, 1.0);

Properties

Vector4 positionScreen #

Vector4 positionScreen

Vector3 positionWorld #

Vector3 positionWorld

bool visible #

bool visible = true

Methods

dynamic clone() #

clone() => new RenderableVertex()..copy(this);

dynamic copy(RenderableVertex vertex) #

copy( RenderableVertex vertex ) {
 positionWorld.setFrom( vertex.positionWorld );
 positionScreen.setFrom( vertex.positionScreen );
}