MQPoint class

MQPoint contains the position of XYZ coordinates.

Property

get set Type Name Description
x x float x X coordinate
x x float y Y coordinate
x x float z Z coordinate

Method

Member Description
normalize Normalize a vector.
getNormal Get a normalized vector.
dotProduct Calculate a dot product.
crossProduct Calculate a cross product.

normalize

Normalize a vector.

getNormal

Get a normalized vector.

Return value:
MQPoint - normalized vector

dotProduct(vec)

Calculate a dot product.

Parameters:
MQPoint vec - vector
Return value:
float - dot product (self.x*vec.x + self.y*vec.y + self.z*vec.z)

crossProduct(vec)

Calculate a cross product.

Parameters:
MQPoint vec - vector
Return value:
MQPoint - cross product