Point3 class
A point in 3-dimensional space, which is a Vector3. This implementation supplies common mathematical operations on points.
- Inheritance
-
- Object
- Vector3
- Point3
Constructors
- Point3(double x, double y, double z)
-
Creates a new Point3 with the given coordinates.
factory
- Point3.vec(Vector3 other)
-
Creates a new Point3 from the given Vector3.
factory
- Point3.zero()
- Creates a new Point3 at the coordinate origin.
Properties
- b ↔ double
-
getter/setter pairinherited
- bb → Vector2
-
no setterinherited
- bbb → Vector3
-
no setterinherited
- bbbb → Vector4
-
no setterinherited
- bbbg → Vector4
-
no setterinherited
- bbbr → Vector4
-
no setterinherited
- bbg → Vector3
-
no setterinherited
- bbgb → Vector4
-
no setterinherited
- bbgg → Vector4
-
no setterinherited
- bbgr → Vector4
-
no setterinherited
- bbr → Vector3
-
no setterinherited
- bbrb → Vector4
-
no setterinherited
- bbrg → Vector4
-
no setterinherited
- bbrr → Vector4
-
no setterinherited
- bg ↔ Vector2
-
getter/setter pairinherited
- bgb → Vector3
-
no setterinherited
- bgbb → Vector4
-
no setterinherited
- bgbg → Vector4
-
no setterinherited
- bgbr → Vector4
-
no setterinherited
- bgg → Vector3
-
no setterinherited
- bggb → Vector4
-
no setterinherited
- bggg → Vector4
-
no setterinherited
- bggr → Vector4
-
no setterinherited
- bgr ↔ Vector3
-
getter/setter pairinherited
- bgrb → Vector4
-
no setterinherited
- bgrg → Vector4
-
no setterinherited
- bgrr → Vector4
-
no setterinherited
- br ↔ Vector2
-
getter/setter pairinherited
- brb → Vector3
-
no setterinherited
- brbb → Vector4
-
no setterinherited
- brbg → Vector4
-
no setterinherited
- brbr → Vector4
-
no setterinherited
- brg ↔ Vector3
-
getter/setter pairinherited
- brgb → Vector4
-
no setterinherited
- brgg → Vector4
-
no setterinherited
- brgr → Vector4
-
no setterinherited
- brr → Vector3
-
no setterinherited
- brrb → Vector4
-
no setterinherited
- brrg → Vector4
-
no setterinherited
- brrr → Vector4
-
no setterinherited
- g ↔ double
-
getter/setter pairinherited
- gb ↔ Vector2
-
getter/setter pairinherited
- gbb → Vector3
-
no setterinherited
- gbbb → Vector4
-
no setterinherited
- gbbg → Vector4
-
no setterinherited
- gbbr → Vector4
-
no setterinherited
- gbg → Vector3
-
no setterinherited
- gbgb → Vector4
-
no setterinherited
- gbgg → Vector4
-
no setterinherited
- gbgr → Vector4
-
no setterinherited
- gbr ↔ Vector3
-
getter/setter pairinherited
- gbrb → Vector4
-
no setterinherited
- gbrg → Vector4
-
no setterinherited
- gbrr → Vector4
-
no setterinherited
- gg → Vector2
-
no setterinherited
- ggb → Vector3
-
no setterinherited
- ggbb → Vector4
-
no setterinherited
- ggbg → Vector4
-
no setterinherited
- ggbr → Vector4
-
no setterinherited
- ggg → Vector3
-
no setterinherited
- gggb → Vector4
-
no setterinherited
- gggg → Vector4
-
no setterinherited
- gggr → Vector4
-
no setterinherited
- ggr → Vector3
-
no setterinherited
- ggrb → Vector4
-
no setterinherited
- ggrg → Vector4
-
no setterinherited
- ggrr → Vector4
-
no setterinherited
- gr ↔ Vector2
-
getter/setter pairinherited
- grb ↔ Vector3
-
getter/setter pairinherited
- grbb → Vector4
-
no setterinherited
- grbg → Vector4
-
no setterinherited
- grbr → Vector4
-
no setterinherited
- grg → Vector3
-
no setterinherited
- grgb → Vector4
-
no setterinherited
- grgg → Vector4
-
no setterinherited
- grgr → Vector4
-
no setterinherited
- grr → Vector3
-
no setterinherited
- grrb → Vector4
-
no setterinherited
- grrg → Vector4
-
no setterinherited
- grrr → Vector4
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- isInfinite → bool
-
True if any component is infinite.
no setterinherited
- isNaN → bool
-
True if any component is NaN.
no setterinherited
- length ↔ double
-
Length.
getter/setter pairinherited
- length2 → double
-
Length squared.
no setterinherited
- p ↔ double
-
getter/setter pairinherited
- pp → Vector2
-
no setterinherited
- ppp → Vector3
-
no setterinherited
- pppp → Vector4
-
no setterinherited
- ppps → Vector4
-
no setterinherited
- pppt → Vector4
-
no setterinherited
- pps → Vector3
-
no setterinherited
- ppsp → Vector4
-
no setterinherited
- ppss → Vector4
-
no setterinherited
- ppst → Vector4
-
no setterinherited
- ppt → Vector3
-
no setterinherited
- pptp → Vector4
-
no setterinherited
- ppts → Vector4
-
no setterinherited
- pptt → Vector4
-
no setterinherited
- ps ↔ Vector2
-
getter/setter pairinherited
- psp → Vector3
-
no setterinherited
- pspp → Vector4
-
no setterinherited
- psps → Vector4
-
no setterinherited
- pspt → Vector4
-
no setterinherited
- pss → Vector3
-
no setterinherited
- pssp → Vector4
-
no setterinherited
- psss → Vector4
-
no setterinherited
- psst → Vector4
-
no setterinherited
- pst ↔ Vector3
-
getter/setter pairinherited
- pstp → Vector4
-
no setterinherited
- psts → Vector4
-
no setterinherited
- pstt → Vector4
-
no setterinherited
- pt ↔ Vector2
-
getter/setter pairinherited
- ptp → Vector3
-
no setterinherited
- ptpp → Vector4
-
no setterinherited
- ptps → Vector4
-
no setterinherited
- ptpt → Vector4
-
no setterinherited
- pts ↔ Vector3
-
getter/setter pairinherited
- ptsp → Vector4
-
no setterinherited
- ptss → Vector4
-
no setterinherited
- ptst → Vector4
-
no setterinherited
- ptt → Vector3
-
no setterinherited
- pttp → Vector4
-
no setterinherited
- ptts → Vector4
-
no setterinherited
- pttt → Vector4
-
no setterinherited
- r ↔ double
-
getter/setter pairinherited
- rb ↔ Vector2
-
getter/setter pairinherited
- rbb → Vector3
-
no setterinherited
- rbbb → Vector4
-
no setterinherited
- rbbg → Vector4
-
no setterinherited
- rbbr → Vector4
-
no setterinherited
- rbg ↔ Vector3
-
getter/setter pairinherited
- rbgb → Vector4
-
no setterinherited
- rbgg → Vector4
-
no setterinherited
- rbgr → Vector4
-
no setterinherited
- rbr → Vector3
-
no setterinherited
- rbrb → Vector4
-
no setterinherited
- rbrg → Vector4
-
no setterinherited
- rbrr → Vector4
-
no setterinherited
- rg ↔ Vector2
-
getter/setter pairinherited
- rgb ↔ Vector3
-
getter/setter pairinherited
- rgbb → Vector4
-
no setterinherited
- rgbg → Vector4
-
no setterinherited
- rgbr → Vector4
-
no setterinherited
- rgg → Vector3
-
no setterinherited
- rggb → Vector4
-
no setterinherited
- rggg → Vector4
-
no setterinherited
- rggr → Vector4
-
no setterinherited
- rgr → Vector3
-
no setterinherited
- rgrb → Vector4
-
no setterinherited
- rgrg → Vector4
-
no setterinherited
- rgrr → Vector4
-
no setterinherited
- rr → Vector2
-
no setterinherited
- rrb → Vector3
-
no setterinherited
- rrbb → Vector4
-
no setterinherited
- rrbg → Vector4
-
no setterinherited
- rrbr → Vector4
-
no setterinherited
- rrg → Vector3
-
no setterinherited
- rrgb → Vector4
-
no setterinherited
- rrgg → Vector4
-
no setterinherited
- rrgr → Vector4
-
no setterinherited
- rrr → Vector3
-
no setterinherited
- rrrb → Vector4
-
no setterinherited
- rrrg → Vector4
-
no setterinherited
- rrrr → Vector4
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- s ↔ double
-
getter/setter pairinherited
- sp ↔ Vector2
-
getter/setter pairinherited
- spp → Vector3
-
no setterinherited
- sppp → Vector4
-
no setterinherited
- spps → Vector4
-
no setterinherited
- sppt → Vector4
-
no setterinherited
- sps → Vector3
-
no setterinherited
- spsp → Vector4
-
no setterinherited
- spss → Vector4
-
no setterinherited
- spst → Vector4
-
no setterinherited
- spt ↔ Vector3
-
getter/setter pairinherited
- sptp → Vector4
-
no setterinherited
- spts → Vector4
-
no setterinherited
- sptt → Vector4
-
no setterinherited
- ss → Vector2
-
no setterinherited
- ssp → Vector3
-
no setterinherited
- sspp → Vector4
-
no setterinherited
- ssps → Vector4
-
no setterinherited
- sspt → Vector4
-
no setterinherited
- sss → Vector3
-
no setterinherited
- sssp → Vector4
-
no setterinherited
- ssss → Vector4
-
no setterinherited
- ssst → Vector4
-
no setterinherited
- sst → Vector3
-
no setterinherited
- sstp → Vector4
-
no setterinherited
- ssts → Vector4
-
no setterinherited
- sstt → Vector4
-
no setterinherited
- st ↔ Vector2
-
getter/setter pairinherited
- storage → Float32List
-
The components of the vector.
no setterinherited
- stp ↔ Vector3
-
getter/setter pairinherited
- stpp → Vector4
-
no setterinherited
- stps → Vector4
-
no setterinherited
- stpt → Vector4
-
no setterinherited
- sts → Vector3
-
no setterinherited
- stsp → Vector4
-
no setterinherited
- stss → Vector4
-
no setterinherited
- stst → Vector4
-
no setterinherited
- stt → Vector3
-
no setterinherited
- sttp → Vector4
-
no setterinherited
- stts → Vector4
-
no setterinherited
- sttt → Vector4
-
no setterinherited
- t ↔ double
-
getter/setter pairinherited
- tp ↔ Vector2
-
getter/setter pairinherited
- tpp → Vector3
-
no setterinherited
- tppp → Vector4
-
no setterinherited
- tpps → Vector4
-
no setterinherited
- tppt → Vector4
-
no setterinherited
- tps ↔ Vector3
-
getter/setter pairinherited
- tpsp → Vector4
-
no setterinherited
- tpss → Vector4
-
no setterinherited
- tpst → Vector4
-
no setterinherited
- tpt → Vector3
-
no setterinherited
- tptp → Vector4
-
no setterinherited
- tpts → Vector4
-
no setterinherited
- tptt → Vector4
-
no setterinherited
- ts ↔ Vector2
-
getter/setter pairinherited
- tsp ↔ Vector3
-
getter/setter pairinherited
- tspp → Vector4
-
no setterinherited
- tsps → Vector4
-
no setterinherited
- tspt → Vector4
-
no setterinherited
- tss → Vector3
-
no setterinherited
- tssp → Vector4
-
no setterinherited
- tsss → Vector4
-
no setterinherited
- tsst → Vector4
-
no setterinherited
- tst → Vector3
-
no setterinherited
- tstp → Vector4
-
no setterinherited
- tsts → Vector4
-
no setterinherited
- tstt → Vector4
-
no setterinherited
- tt → Vector2
-
no setterinherited
- ttp → Vector3
-
no setterinherited
- ttpp → Vector4
-
no setterinherited
- ttps → Vector4
-
no setterinherited
- ttpt → Vector4
-
no setterinherited
- tts → Vector3
-
no setterinherited
- ttsp → Vector4
-
no setterinherited
- ttss → Vector4
-
no setterinherited
- ttst → Vector4
-
no setterinherited
- ttt → Vector3
-
no setterinherited
- tttp → Vector4
-
no setterinherited
- ttts → Vector4
-
no setterinherited
- tttt → Vector4
-
no setterinherited
- x ↔ double
-
getter/setter pairinherited
- xx → Vector2
-
no setterinherited
- xxx → Vector3
-
no setterinherited
- xxxx → Vector4
-
no setterinherited
- xxxy → Vector4
-
no setterinherited
- xxxz → Vector4
-
no setterinherited
- xxy → Vector3
-
no setterinherited
- xxyx → Vector4
-
no setterinherited
- xxyy → Vector4
-
no setterinherited
- xxyz → Vector4
-
no setterinherited
- xxz → Vector3
-
no setterinherited
- xxzx → Vector4
-
no setterinherited
- xxzy → Vector4
-
no setterinherited
- xxzz → Vector4
-
no setterinherited
- xy ↔ Vector2
-
getter/setter pairinherited
- xyx → Vector3
-
no setterinherited
- xyxx → Vector4
-
no setterinherited
- xyxy → Vector4
-
no setterinherited
- xyxz → Vector4
-
no setterinherited
- xyy → Vector3
-
no setterinherited
- xyyx → Vector4
-
no setterinherited
- xyyy → Vector4
-
no setterinherited
- xyyz → Vector4
-
no setterinherited
- xyz ↔ Vector3
-
getter/setter pairinherited
- xyzx → Vector4
-
no setterinherited
- xyzy → Vector4
-
no setterinherited
- xyzz → Vector4
-
no setterinherited
- xz ↔ Vector2
-
getter/setter pairinherited
- xzx → Vector3
-
no setterinherited
- xzxx → Vector4
-
no setterinherited
- xzxy → Vector4
-
no setterinherited
- xzxz → Vector4
-
no setterinherited
- xzy ↔ Vector3
-
getter/setter pairinherited
- xzyx → Vector4
-
no setterinherited
- xzyy → Vector4
-
no setterinherited
- xzyz → Vector4
-
no setterinherited
- xzz → Vector3
-
no setterinherited
- xzzx → Vector4
-
no setterinherited
- xzzy → Vector4
-
no setterinherited
- xzzz → Vector4
-
no setterinherited
- y ↔ double
-
getter/setter pairinherited
- yx ↔ Vector2
-
getter/setter pairinherited
- yxx → Vector3
-
no setterinherited
- yxxx → Vector4
-
no setterinherited
- yxxy → Vector4
-
no setterinherited
- yxxz → Vector4
-
no setterinherited
- yxy → Vector3
-
no setterinherited
- yxyx → Vector4
-
no setterinherited
- yxyy → Vector4
-
no setterinherited
- yxyz → Vector4
-
no setterinherited
- yxz ↔ Vector3
-
getter/setter pairinherited
- yxzx → Vector4
-
no setterinherited
- yxzy → Vector4
-
no setterinherited
- yxzz → Vector4
-
no setterinherited
- yy → Vector2
-
no setterinherited
- yyx → Vector3
-
no setterinherited
- yyxx → Vector4
-
no setterinherited
- yyxy → Vector4
-
no setterinherited
- yyxz → Vector4
-
no setterinherited
- yyy → Vector3
-
no setterinherited
- yyyx → Vector4
-
no setterinherited
- yyyy → Vector4
-
no setterinherited
- yyyz → Vector4
-
no setterinherited
- yyz → Vector3
-
no setterinherited
- yyzx → Vector4
-
no setterinherited
- yyzy → Vector4
-
no setterinherited
- yyzz → Vector4
-
no setterinherited
- yz ↔ Vector2
-
getter/setter pairinherited
- yzx ↔ Vector3
-
getter/setter pairinherited
- yzxx → Vector4
-
no setterinherited
- yzxy → Vector4
-
no setterinherited
- yzxz → Vector4
-
no setterinherited
- yzy → Vector3
-
no setterinherited
- yzyx → Vector4
-
no setterinherited
- yzyy → Vector4
-
no setterinherited
- yzyz → Vector4
-
no setterinherited
- yzz → Vector3
-
no setterinherited
- yzzx → Vector4
-
no setterinherited
- yzzy → Vector4
-
no setterinherited
- yzzz → Vector4
-
no setterinherited
- z ↔ double
-
getter/setter pairinherited
- zx ↔ Vector2
-
getter/setter pairinherited
- zxx → Vector3
-
no setterinherited
- zxxx → Vector4
-
no setterinherited
- zxxy → Vector4
-
no setterinherited
- zxxz → Vector4
-
no setterinherited
- zxy ↔ Vector3
-
getter/setter pairinherited
- zxyx → Vector4
-
no setterinherited
- zxyy → Vector4
-
no setterinherited
- zxyz → Vector4
-
no setterinherited
- zxz → Vector3
-
no setterinherited
- zxzx → Vector4
-
no setterinherited
- zxzy → Vector4
-
no setterinherited
- zxzz → Vector4
-
no setterinherited
- zy ↔ Vector2
-
getter/setter pairinherited
- zyx ↔ Vector3
-
getter/setter pairinherited
- zyxx → Vector4
-
no setterinherited
- zyxy → Vector4
-
no setterinherited
- zyxz → Vector4
-
no setterinherited
- zyy → Vector3
-
no setterinherited
- zyyx → Vector4
-
no setterinherited
- zyyy → Vector4
-
no setterinherited
- zyyz → Vector4
-
no setterinherited
- zyz → Vector3
-
no setterinherited
- zyzx → Vector4
-
no setterinherited
- zyzy → Vector4
-
no setterinherited
- zyzz → Vector4
-
no setterinherited
- zz → Vector2
-
no setterinherited
- zzx → Vector3
-
no setterinherited
- zzxx → Vector4
-
no setterinherited
- zzxy → Vector4
-
no setterinherited
- zzxz → Vector4
-
no setterinherited
- zzy → Vector3
-
no setterinherited
- zzyx → Vector4
-
no setterinherited
- zzyy → Vector4
-
no setterinherited
- zzyz → Vector4
-
no setterinherited
- zzz → Vector3
-
no setterinherited
- zzzx → Vector4
-
no setterinherited
- zzzy → Vector4
-
no setterinherited
- zzzz → Vector4
-
no setterinherited
Methods
-
absolute(
) → void -
Absolute value.
inherited
-
absoluteError(
Vector3 correct) → double -
Absolute error between this and
correct
inherited -
add(
Vector3 arg) → void -
Add
arg
to this.inherited -
addScaled(
Vector3 arg, double factor) → void -
Add
arg
scaled byfactor
to this.inherited -
angleTo(
Vector3 other) → double -
Returns the angle between this vector and
other
in radians.inherited -
angleToSigned(
Vector3 other, Vector3 normal) → double -
Returns the signed angle between this and
other
aroundnormal
in radians.inherited -
applyAxisAngle(
Vector3 axis, double angle) → void -
Applies a rotation specified by
axis
andangle
.inherited -
applyMatrix3(
Matrix3 arg) → void -
Multiplies this by
arg
.inherited -
applyMatrix4(
Matrix4 arg) → void -
Multiplies this by a 4x3 subset of
arg
. Expectsarg
to be an affine transformation matrix.inherited -
applyProjection(
Matrix4 arg) → void -
Projects this using the projection matrix
arg
inherited -
applyQuaternion(
Quaternion arg) → void -
Applies a quaternion transform.
inherited
-
ceil(
) → void -
Ceil entries in this.
inherited
-
clamp(
Vector3 min, Vector3 max) → void -
Clamp each entry n in this in the range [min
n
]-[maxn
].inherited -
clampScalar(
double min, double max) → void -
Clamp entries in this in the range
min
-max
.inherited -
clone(
) → Vector3 -
Clone of this.
inherited
-
copyFromArray(
List< double> array, [int offset = 0]) → void -
Copies elements from
array
into this starting atoffset
.inherited -
copyInto(
Vector3 arg) → Vector3 -
Copy this into
arg
.inherited -
copyIntoArray(
List< double> array, [int offset = 0]) → void -
Copies this into
array
starting atoffset
.inherited -
cross(
Vector3 other) → Vector3 -
Cross product.
inherited
-
crossInto(
Vector3 other, Vector3 out) → Vector3 -
Cross product. Stores result in
out
.inherited -
distanceTo(
Vector3 arg) → double -
Distance from this to
arg
inherited -
distanceToSquared(
Vector3 arg) → double -
Squared distance from this to
arg
inherited -
divide(
Vector3 arg) → void -
Divide entries in this with entries in
arg
.inherited -
dot(
Vector3 other) → double -
Inner product.
inherited
-
floor(
) → void -
Floor entries in this.
inherited
-
lerp(
Point3 p2, num coeff) → Point3 - Performs a linear interpolation between two points.
-
multiply(
Vector3 arg) → void -
Multiply entries in this with entries in
arg
.inherited -
negate(
) → void -
Negate this.
inherited
-
normalize(
) → double -
Normalizes this.
inherited
-
normalized(
) → Vector3 -
Normalizes copy of this.
inherited
-
normalizeInto(
Vector3 out) → Vector3 -
Normalize vector into
out
.inherited -
normalizeLength(
) → double -
Normalize this. Returns length of vector before normalization.
DEPRCATED: Use
normalize
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postmultiply(
Matrix3 arg) → void -
Transforms this into the product of this as a row vector,
postmultiplied by matrix,
arg
. Ifarg
is a rotation matrix, this is a computational shortcut for applying, the inverse of the transformation.inherited -
reflect(
Vector3 normal) → void -
Reflect this.
inherited
-
reflected(
Vector3 normal) → Vector3 -
Reflected copy of this.
inherited
-
relativeError(
Vector3 correct) → double -
Relative error between this and
correct
inherited -
round(
) → void -
Round entries in this.
inherited
-
roundToZero(
) → void -
Round entries in this towards zero.
inherited
-
scale(
double arg) → void -
Scale this.
inherited
-
scaled(
double arg) → Vector3 -
Create a copy of this and scale it by
arg
.inherited -
setFrom(
Vector3 other) → void -
Set the values by copying them from
other
.inherited -
setValues(
double x, double y, double z) → void -
Set the values of the vector.
inherited
-
setZero(
) → void -
Zero vector.
inherited
-
splat(
double arg) → void -
Splat
arg
into all lanes of the vector.inherited -
sub(
Vector3 arg) → void -
Subtract
arg
from this.inherited -
toString(
) → String -
Returns a printable string
override
-
toVec4(
) → Vector4 - Transforms the point to its homogeneous vector4 representation. The w component is set to 1.
Operators
-
operator *(
double scale) → Vector3 -
Scale by
scale
.inherited -
operator +(
Vector3 v) → Point3 -
Returns a new point which position is determined by moving the old point
along the given vector.
override
-
operator -(
Vector3 p2) → Vector3 -
Returns the
Vector3
pointing from the given point to this point.override -
operator /(
double scale) → Vector3 -
Scale.
inherited
-
operator ==(
Object o) → bool -
Checks for equality. Two points are considered equal, if their coordinates
match.
override
-
operator [](
int i) → double -
Access the component of the vector at the index
i
.inherited -
operator []=(
int i, double v) → void -
Set the component of the vector at the index
i
.inherited -
operator unary-(
) → Point3 -
Negates the point's components.
override