- dvec2
alias dvec2 = Vector!(double, 2)
Undocumented in source.
- dvec3
alias dvec3 = Vector!(double, 3)
Undocumented in source.
- dvec4
alias dvec4 = Vector!(double, 4)
Undocumented in source.
- isInfinity
alias isInfinity = isinf
query if any entry is inf
- isNaN
alias isNaN = isnan
query if any entry is nan
- isValid
alias isValid = isvalid
query if all entries are not nan and not inf
- ivec2
alias ivec2 = Vector!(int, 2)
Undocumented in source.
- ivec2b
alias ivec2b = Vector!(byte, 2)
Undocumented in source.
- ivec2s
alias ivec2s = Vector!(short, 2)
Undocumented in source.
- ivec3
alias ivec3 = Vector!(int, 3)
Undocumented in source.
- ivec3b
alias ivec3b = Vector!(byte, 3)
Undocumented in source.
- ivec3s
alias ivec3s = Vector!(short, 3)
Undocumented in source.
- ivec4
alias ivec4 = Vector!(int, 4)
Undocumented in source.
- ivec4b
alias ivec4b = Vector!(byte, 4)
Undocumented in source.
- ivec4s
alias ivec4s = Vector!(short, 4)
Undocumented in source.
- uvec2
alias uvec2 = Vector!(uint, 2)
Undocumented in source.
- uvec2b
alias uvec2b = Vector!(ubyte, 2)
Undocumented in source.
- uvec2s
alias uvec2s = Vector!(ushort, 2)
Undocumented in source.
- uvec3
alias uvec3 = Vector!(uint, 3)
Undocumented in source.
- uvec3b
alias uvec3b = Vector!(ubyte, 3)
Undocumented in source.
- uvec3s
alias uvec3s = Vector!(ushort, 3)
Undocumented in source.
- uvec4
alias uvec4 = Vector!(uint, 4)
Undocumented in source.
- uvec4b
alias uvec4b = Vector!(ubyte, 4)
Undocumented in source.
- uvec4s
alias uvec4s = Vector!(ushort, 4)
Undocumented in source.
- vec2
alias vec2 = Vector!(float, 2)
- vec3
alias vec3 = Vector!(float, 3)
Undocumented in source.
- vec4
alias vec4 = Vector!(float, 4)
Undocumented in source.
- cross
genType cross(genType a, genType b)
- distance
genType.valueType distance(genType a, genType b)
Distance between two vectors
- dot
genType.valueType dot(genType a, genType b)
- faceforward
genType faceforward(genType N, genType I, genType Nref)
Flip the Vector N based on an incident vector I and a reference Vector Nref
- isinf
bool isinf(genType vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- isnan
bool isnan(genType vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- isvalid
bool isvalid(genType vec)
Undocumented in source. Be warned that the author may not have intended to support it.
- length
auto length(genType v)
Vector length floating point valueType
- normalize
genType normalize(genType v)
- reflect
genType reflect(genType I, genType N)
Reflect the Vector I on a plane with normal N
The normal N must already to be normalized
- refract
genType.valueType refract(genType I, genType N, genType.valueType eta)
For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector
The input parameters for the incident vector I and the surface normal N must already be normalized
dlsl.vector