vector3

A 3D vector representation

Properties

This object has no properties.
Methods

normalize | Normalizes the vector in-place |

getNormalized | Returns a normalized copy of the vector |

length | Returns the length of the vector |

lengthSq | Returns the squared length of the vector |

dot | Returns the dot product of the vector with the given vector |

cross | Returns the cross product of the vector with the given vector |

reflect | Reflects the vector about the given normal |

transform | Transforms the vector by the given matrix |

transformCoord | Transforms the vector by the given matrix and projects it back into w=1 |

transformNormal | Transforms the vector representing a normal by the given matrix NOTE: To transform a normal by a matrix used to transform a point, the matrix passed in must be the transpose of the inverse of that matrix. |

Events

This object has no events.