vector

class granoo3.lib.vector

Bases: Boost.Python.instance

an euclidean vector

Attributes Summary

x

x component

y

y component

z

z component

Methods Summary

clear(arg1)

clear the vector

get_x(arg1)

get x component value

get_y(arg1)

get y component value

get_z(arg1)

get z component value

is_nan(arg1)

check if the vector contains a NaN

is_null(arg1)

check if the vector is null

norm(arg1)

compute the norm of the vector

normalize(arg1)

normalizing the vector

orthogonal_vec(arg1)

get an othogonal vector

project_on_axis(arg1, arg2)

project on a given axis

project_on_plane(arg1, arg2)

project on a given plane

squared_norm(arg1)

compute the squared norm of the vector

to_point(arg1)

cast the vector to a point

unit(arg1)

computes and returns the unit vector

Attributes Documentation

x

x component

y

y component

z

z component

Methods Documentation

clear((vector)arg1) None[STATIC]

clear the vector

get_x((vector)arg1) float[STATIC]

get x component value

get_y((vector)arg1) float[STATIC]

get y component value

get_z((vector)arg1) float[STATIC]

get z component value

is_nan((vector)arg1) bool[STATIC]

check if the vector contains a NaN

is_null((vector)arg1) bool[STATIC]

check if the vector is null

norm((vector)arg1) float[STATIC]

compute the norm of the vector

normalize((vector)arg1) float[STATIC]

normalizing the vector

orthogonal_vec((vector)arg1) vector[STATIC]

get an othogonal vector

project_on_axis((vector)arg1, (vector)arg2) None[STATIC]

project on a given axis

project_on_plane((vector)arg1, (vector)arg2) None[STATIC]

project on a given plane

squared_norm((vector)arg1) float[STATIC]

compute the squared norm of the vector

to_point((vector)arg1) point[STATIC]

cast the vector to a point

unit((vector)arg1) vector[STATIC]

computes and returns the unit vector