Open ElectricCoffee opened 5 years ago
distance
is implemented and available in v. 2.0.0
slerp
now implemented in the develop branch
project
now added in the development branch.
Made it a part of the trait, since projection isn't unique to 3D vectors
The following methods in
Vector3
have yet to be added:[x]
distance(self, other: Self) -> f64
-- Returns the distance between two vectors.[x]
slerp
-- Spherical lerp[ ]
ortho_normalize(normal: &mut Vector3, tangent: &mut Vector3, binormal: Vector3)
-- Normalizesnormal
. Normalizestangent
and makes sure it is orthogonal tonormal
. Normalizesbinormal
and makes sure it is orthogonal to bothnormal
andtangent
.[x]
project
-- Projects a vector onto another vector[ ]
project_on_plane
-- Projects a vector onto a plane defined by a normal orthogonal to the plane.[ ]
rotate_towards
-- Rotates a vector towards a target