module Boleite::Vector
Defined in:
boleite/math/vector.crClass Method Summary
- .clamp(value : VectorImp(T, N), min : VectorImp(T, N), max : VectorImp(T, N)) forall T, N
- .closest_point_on_segment(a : VectorImp(T, 3), b : VectorImp(T, 3), point : VectorImp(T, 3), clamp = true) forall T
- .cross(left : VectorImp(T, 3), right : VectorImp(T, 3)) forall T
- .distance_to_ray(origin : VectorImp(T, 3), dir : VectorImp(T, 3), point : VectorImp(T, 3)) forall T
- .distance_to_segment(a : VectorImp(T, 3), b : VectorImp(T, 3), point : VectorImp(T, 3), clamp = true) forall T
- .dot(left : VectorImp(T, N), right : VectorImp(T, N)) forall T, N
- .inside_shape?(v : Indexable(VectorImp(T, 2)), p : VectorImp(T, 2)) forall T
- .magnitude(value : VectorImp(T, N)) forall T, N
- .max(left : VectorImp(T, N), right : VectorImp(T, N)) forall T, N
- .min(left : VectorImp(T, N), right : VectorImp(T, N)) forall T, N
- .normalize(value : VectorImp(T, N)) forall T, N
- .rotate(v : VectorImp(T, 2), radians) forall T
- .square_magnitude(value : VectorImp(T, N)) forall T, N
Class Method Detail
def self.closest_point_on_segment(a : VectorImp(T, 3), b : VectorImp(T, 3), point : VectorImp(T, 3), clamp = true) forall T
#
def self.distance_to_ray(origin : VectorImp(T, 3), dir : VectorImp(T, 3), point : VectorImp(T, 3)) forall T
#
def self.distance_to_segment(a : VectorImp(T, 3), b : VectorImp(T, 3), point : VectorImp(T, 3), clamp = true) forall T
#