class Mittsu::Vector3

Direct Known Subclasses

Defined in:

mittsu/math/vector3.cr

Constructors

Instance Method Summary

Instance methods inherited from class Mittsu::Vector

==(v) ==, [](index) [], []=(index, value) []=, add(v) add, add_scalar(s) add_scalar, add_vectors(a, b) add_vectors, angle_to(v) angle_to, ceil ceil, clamp(min, max) clamp, clamp_scalar(min, max) clamp_scalar, clone clone, copy(v) copy, dimensions : Int32 dimensions, distance_to(v) distance_to, divide(v) divide, divide_scalar(s) divide_scalar, each_dimension(&) each_dimension, elements : Array(Float64) elements, elements=(elements : Array(Float64)) elements=, floor floor, from_array(array, offset = 0) from_array, index index, index=(index) index=, length length, length_sq length_sq, lerp(v, alpha) lerp, lerp_vectors(v1, v2, alpha) lerp_vectors, max(v) max, min(v) min, multiply(v) multiply, multiply_scalar(s) multiply_scalar, multiply_vectors(a, b) multiply_vectors, negate negate, normalize normalize, project_on_plane(plane_normal) project_on_plane, project_on_vector(vector) project_on_vector, reflect(normal) reflect, round round, round_to_zero round_to_zero, set(elements : Array(Float64)) set, set_length(l) set_length, sub(v) sub, sub_scalar(s) sub_scalar, sub_vectors(a, b) sub_vectors, to_a(array = [] of Float64, offset = 0) to_a, to_array(array = [] of Float64, offset = 0) to_array, to_s to_s, uv uv, uv=(uv) uv=

Constructor methods inherited from class Mittsu::Vector

new(elements : Array(Float64)) new

Constructor Detail

def self.new(x = 0, y = 0, z = 0) #

[View source]

Instance Method Detail

def apply_axis_angle(axis, angle) #

[View source]
def apply_euler(euler) #

[View source]
def apply_matrix3(m) #

[View source]
def apply_matrix4(m) #

[View source]
def apply_projection(m) #

[View source]
def apply_quaternion(q) #

[View source]
def cross(v) #

[View source]
def cross_vectors(a, b) #

[View source]
def distance_to_squared(v) #

[View source]
def dot(v) #

[View source]
def from_attribute(attribute, index, offset = 0) #

[View source]
def length_manhattan #

[View source]
def project(camera) #

[View source]
def set(x, y, z) #

[View source]
def set_from_matrix_column(index, matrix) #

[View source]
def set_from_matrix_position(m) #

[View source]
def set_from_matrix_scale(m) #

[View source]
def transform_direction(m) #

[View source]
def unproject(camera) #

[View source]
def x #

[View source]
def x=(value) #

[View source]
def y #

[View source]
def y=(value) #

[View source]
def z #

[View source]
def z=(value) #

[View source]