16 r.
x = ((costheta + (1.0f - costheta) * axis.
x * axis.
x) * p.
x) +
17 (((1.0f - costheta) * axis.
x * axis.
y - axis.
z * sintheta) * p.
y) +
18 (((1.0f - costheta) * axis.
x * axis.
z + axis.
y * sintheta) * p.
z);
20 r.
y = (((1.0f - costheta) * axis.
x * axis.
y + axis.
z * sintheta) * p.
x) +
21 ((costheta + (1.0f - costheta) * axis.
y * axis.
y) * p.
y) +
22 (((1.0f - costheta) * axis.
y * axis.
z - axis.
x * sintheta) * p.
z);
24 r.
z = (((1.0f - costheta) * axis.
x * axis.
z - axis.
y * sintheta) * p.
x) +
25 (((1.0f - costheta) * axis.
y * axis.
z + axis.
x * sintheta) * p.
y) +
26 ((costheta + (1.0f - costheta) * axis.
z * axis.
z) * p.
z);
40 vec = (
length(axis) != 0.0f) ?
92 vec = rmat * (vector_in - center) + center;
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
VecBase< float, D > normalize(VecOp< float, D >) RET
MatBase< R, C > transpose(MatBase< C, R >) RET
float length(VecOp< float, D >) RET
float3 rotate_around_axis(float3 p, float3 axis, float angle)
void node_vector_rotate_axis_x(float3 vector_in, float3 center, float3, float angle, float3, float invert, float3 &vec)
void node_vector_rotate_axis_y(float3 vector_in, float3 center, float3, float angle, float3, float invert, float3 &vec)
void node_vector_rotate_euler_xyz(float3 vector_in, float3 center, float3, float, float3 rotation, float invert, float3 &vec)
void node_vector_rotate_axis_z(float3 vector_in, float3 center, float3, float angle, float3, float invert, float3 &vec)
void node_vector_rotate_axis_angle(float3 vector_in, float3 center, float3 axis, float angle, float3, float invert, float3 &vec)
float2x2 invert(float2x2 mat)
float2x2 from_rotation(AngleRadian rotation)
static EulerXYZ from_float3(float3 eul)