mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
9 lines
No EOL
210 B
Text
9 lines
No EOL
210 B
Text
function __ray(origin, direction) constructor {
|
|
self.origin = origin;
|
|
self.direction = direction.normalize();
|
|
|
|
static sampleDistance = function(t) {
|
|
INLINE
|
|
return origin.add(direction.multiply(t));
|
|
}
|
|
} |