Squeak Class Documentation category index | class index  
 
B3DVector3
  category: Balloon3D-Vectors
  superclass: B3DFloatArray
  subclasses:

I represent simple 3D coordinates, used throughout the entire Balloon 3D engine.

instance methods
  accessing
  x
x:
y
y:
z
z:

  converting
  asB3DVector3
asB3DVector4
asPoint

  enumerating
  vertexPositionsDo:

  initialize
  x:y:z:

  interpolating
  interpolateTo:at:

  private
  privateLoadFrom:

  testing
  isZero

  vector functions
  cross:
length:
max:
min:
normalize
normalized
safelyNormalize
safelyNormalized
squaredLength:

class methods
  instance creation
  numElements
value:
x:y:z:
zero

instance methods
  accessing top  
 

x


 

x:


 

y


 

y:


 

z


 

z:


  converting top  
 

asB3DVector3


 

asB3DVector4


 

asPoint


  enumerating top  
 

vertexPositionsDo:


  initialize top  
 

x:y:z:


  interpolating top  
 

interpolateTo:at:

Interpolates a new vector based on the instance vector, the end state vector, and the amount already done (between 0 and 1).


  private top  
 

privateLoadFrom:

Load the receiver from the given source object.


  testing top  
 

isZero


  vector functions top  
 

cross:

calculate the cross product from the receiver with aVector


 

length:


 

max:


 

min:


 

normalize


 

normalized


 

safelyNormalize

Safely normalize the receiver, e.g. check if the length is non-zero


 

safelyNormalized

Safely normalize the receiver, e.g. check if the length is non-zero


 

squaredLength:


class methods
  instance creation top  
 

numElements


 

value:


 

x:y:z:


 

zero