public class Vector3 extends Object
Constructor and Description |
---|
Vector3()
creates null vector
|
Vector3(double x,
double y,
double z)
creates vector from x,y,z
|
Vector3(Vector3 v)
creates vector from v
|
Modifier and Type | Method and Description |
---|---|
Vector3 |
add(Vector3 v,
Vector3 r) |
double |
length() |
Vector3 |
normalize(Vector3 r) |
static Vector3 |
rotate_v_around_axis(Vector3 v,
Vector3 axis,
double sin,
double cos)
From my former program, A_3D_Editing.java and Pipe.java
|
Vector3 |
scale(double s,
Vector3 r) |
Vector3 |
set(double x,
double y,
double z) |
public Vector3(double x, double y, double z)
public Vector3()
public Vector3(Vector3 v)
public double length()
public Vector3 set(double x, double y, double z)
Copyright © 2015–2021 Fiji. All rights reserved.