Class: DefReflection3

algeobra3d~DefReflection3(normalize)

Definition of a reflection of a vector at a surface defined by its normal

Constructor

new DefReflection3(normalize)

Default values
Parameters:
Name Type Default Description
normalize Boolean false Whether the vector should be normalized
Source:

Methods

compute(createInfo) → {Object}

Computes the reflection
Parameters:
Name Type Description
createInfo CreateInfo The creation info
Source:
Returns:
The reflection of type TYPE_VECTOR
Type
Object

(static) fromVectorNormal(params) → {CreateInfo}

Computes the reflection of a vector along a normal.
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
v Number | Object Either the index or value of a TYPE_VECTOR3. The vector to be reflected
n Number | Object Either the index or value of a TYPE_VECTOR3. The normal
ref Number | Object <optional>
Either the index or value of a TYPE_POINT3. The reference point
normalize Number | Object <optional>
Either the index or value of a TYPE_BOOLEAN. Whether the vector should be normalized
Source:
Returns:
The creation info
Type
CreateInfo